home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Belgian Amiga Club - ADF Collection
/
BS1 part 43.zip
/
ANC 15.adf
/
demo
/
pi.r
< prev
next >
Wrap
Text File
|
1987-01-01
|
2KB
|
28 lines
p @"In this demo, SDB will be used to execute a program that calculates the"
p @"value of pi. The program was started with the following command line:"
p @n"pi 50"nn
p @"The 50 is used by the program to indicate the precision to which it is"
p @"to calculate the value of pi."nn
&
p @"While the other two demo programs have command files that run through"
p @"the entire program one or more times this one simply sets up the program"
p @"to be executed and allows you, the user, to step through it on your own."
p @n"The other programs may also be executed in this manner by invoking sdb"
p @"from the CLI command line followed by the program to be executed."
&
p @n"In case you haven't run the other demos, a few words of explanation might"
p @"be necessary. The top window displays your C source, the middle window"
p @"accepts commands entered via the keyboard and supports an inteligent"
p @"command history with editing, and the bottom window displays the results"
p @"returned by the commands being executed. The program's output is displayed"
p @"on the screen behind sdb and may be viewed by either resizing the sdb"
p @"application window or by switching windows. To toggle between the sdb"
p @"display and the program output, you can either use the function key F10"
p @"or enter a Ctrl-Y."
&
p @n"When you've finished executing the pi program you can exit sdb by using"
p @"the q for quit command. The only other command that you'll need to remember"
p @"is the ? for help. With that you should be able to figure the rest out by"
p @"yourself."
p @n"Have at it!"